
<nz-layout>
  <nz-sider [nzWidth]="300">
    
      <div style="background-color: #fff;padding:5px;">
        <nz-divider nzText='【"一件事"清单】' nzOrientation="left" style="color:rgb(238, 85, 85);font-weight: bold;font-size: 13px;"></nz-divider>
        <nz-input-group [nzSuffix]="suffixIcon">
          <input type="text" nz-input placeholder="按事项名称筛选..." [(ngModel)]="searchValue" />
        </nz-input-group>
        <ng-template #suffixIcon>
          <i nz-icon nzType="search"></i>
        </ng-template>
        
        <div [ngStyle]="style">
          <nz-tree [nzSearchValue]="searchValue" [nzData]="nodes" nzShowLine nzExpandAll nzHideUnMatched (nzClick)="nzEvent($event)"> </nz-tree>
        </div>
      </div>
    
  </nz-sider>
  <nz-content>
   
      <div style="padding: 5px;background-color: #fff;">
        <nz-divider nzText='【"一件事"详情】' nzOrientation="left" style="color:rgb(238, 85, 85);font-weight: bold;font-size: 13px;"></nz-divider>
        <sf #showSf mode="edit" [schema]="showSchema" [button]="null">
          <div  style="text-align:right;padding-right:5px;">
            <button nz-button nzType="primary"  (click)="addone()"><i nz-icon nzType="plus"></i>添加一件事</button>
          <button nz-button nzType="primary" [disabled]="isAddDisabled" (click)="add()"><i nz-icon nzType="plus"></i>添加子项</button>
          <button nz-button #btnSave (click)="update()" [disabled]="!curDAD017"><i nz-icon nzType="save"></i>修改</button>
          <button nz-button nz-popconfirm
          nzPopconfirmTitle="是否删除?"
          nzPopconfirmPlacement="top" (nzOnConfirm)="confirm()"
          (nzOnCancel)="cancel()" nzType="danger" [disabled]="!curDAD017"><i nz-icon nzType="delete"></i>删除</button>
        </div>
        </sf>
        <nz-divider nzText="【子项清单列表】" nzOrientation="left" style="color:rgb(238, 85, 85);font-weight: bold;font-size: 13px;"></nz-divider>
        <lb-grid #st  [columns]="columns" sname="YWTX_YJSCX" [queryparas]="{DAD017: 0}" > 
        </lb-grid>
      </div>

  </nz-content>
</nz-layout>


<nz-modal [(nzVisible)]="isVisible" [nzTitle]="modalTitle" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()" nzWidth="500">
  <sf #addWindow [schema]="addSchema" [formData]="formData" [button]="null" nzOkText="确定">
  </sf>
</nz-modal>

<nz-modal [(nzVisible)]="showModiWindow" [nzTitle]="modalTitle" (nzOnCancel)="modiHandleCancel()" (nzOnOk)="modiHandleOk()" nzWidth="500">
  <sf #modiWindow [schema]="modiSchema" [formData]="modiFormData" [button]="null" nzOkText="确定">
  </sf>
</nz-modal>
<nz-modal [(nzVisible)]="showAddWindow" nzTitle="一件事新增" (nzOnCancel)="handleCancel()" (nzOnOk)="add1()" nzWidth="500">
  <sf #oneadd [schema]="oneAddSchema" [formData]="updateFormData" [button]="null" nzOkText="确定">
  </sf>
</nz-modal>

<nz-modal [(nzVisible)]="showUpdate" nzTitle="一件事修改" (nzOnCancel)="modiHandleCancel()" (nzOnOk)="updateHandleOk()" nzWidth="500">
  <sf #onemodi [schema]="updateSchema" [formData]="updateFormData" [button]="null" nzOkText="确定">
  </sf>
</nz-modal>




